import json,sys,os,random
import LiveDeal

st=sys.argv[1]
d=""
if len(sys.argv)>2:
  d=sys.argv[2]
res=LiveDeal.loadData(st, True, d)
keys=res.keys()
keys.sort()
tc=0
while tc<1000:
  f=LiveDeal.checkPoint(tc, keys, res)
  tc+=1
